package com.dd.cloud.user.service.agent;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dd.cloud.user.entity.agent.AgentUser;
import com.dd.cloud.user.req.agent.*;
import com.dd.cloud.user.res.agent.AgentUserLoginRes;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author Lx
 * @version 1.0
 */
public interface IAgentUserService extends IService<AgentUser> {
    /**
     * 代理商用户登录 密码方式
     *
     * @param request
     * @param response
     * @param req
     * @return
     */
    AgentUserLoginRes loginAgentUserPwd(HttpServletRequest request, HttpServletResponse response, AgentUserLoginPwdReq req);

    /**
     * 代理商用户登录 验证码方式
     *
     * @param request
     * @param response
     * @param req
     * @return
     */
    AgentUserLoginRes loginAgentUserCode(HttpServletRequest request, HttpServletResponse response, AgentUserLoginCodeReq req);

    /**
     * 代理商用户找回密码
     *
     * @param req
     */
    void forgetPwdAgentUser(AgentUserForgetPwdReq req);

    /**
     * 代理商用户通过旧密码修改密码
     *
     * @param req
     */
    void updateAgentUser(AgentUserUpdatePwdReq req);

    /**
     * 初始化代理商用户
     *
     * @param req
     */
    void initAgentUser(AgentCreateReq req);
}
